package com.webase.web.action;

import java.util.List;

import com.webase.model.Role;
import com.webase.service.RoleService;

public class RoleAction {
	RoleService roleService = null;

	List<Role> roleList = null;

	/**
	 * @return the roleList
	 */
	public List<Role> getRoleList() {
		return roleList;
	}

	/**
	 * @param roleList
	 *            the roleList to set
	 */
	public void setRoleList(List<Role> roleList) {
		this.roleList = roleList;
	}

	/**
	 * @return the roleService
	 */
	public RoleService getRoleService() {
		return roleService;
	}

	/**
	 * @param roleService
	 *            the roleService to set
	 */
	public void setRoleService(RoleService roleService) {
		this.roleService = roleService;
	}

	public String execute() {
		roleList = roleService.list();
		return "list";
	}
}
